//
//  NewCityHomeCell.m
//  CenturyCity
//
//  Created by beisheng03 on 2017/11/24.
//  Copyright © 2017年 beisheng. All rights reserved.
//

#import "NewCityHomeCell.h"

@interface NewCityHomeCell ()
@property (weak, nonatomic) IBOutlet UIImageView *rigthImageView;
@property (weak, nonatomic) IBOutlet UILabel *topTitleLabel;

@property (weak, nonatomic) IBOutlet UILabel *timeLabel;

@end

@implementation NewCityHomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.topTitleLabel.font = MYFONT(16);
    
    self.timeLabel.font = MYFONT(13);
    
    self.timeLabel.textColor = darkGray;
    // Initialization code
}

- (void)setModel:(NewCityDynamicModel *)model{
    _model = model;
    
    
    self.topTitleLabel.text = _model.dynamicTitle;
    
    self.timeLabel.text = _model.dynamicTime;
    
    [self.rigthImageView sd_setImageWithURL:[NSURL URLWithString:_model.dynamicImage]];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
